home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_qt.idb / usr / freeware / include / Qt / qpsprinter.h.z / qpsprinter.h
Encoding:
C/C++ Source or Header  |  1998-10-28  |  2.2 KB  |  85 lines

  1. /**********************************************************************
  2. ** $Id: qpsprinter.h,v 2.9 1998/07/03 00:09:40 hanord Exp $
  3. **
  4. **              ***   INTERNAL HEADER FILE   ***
  5. **
  6. **        This file is NOT a part of the Qt interface!
  7. **
  8. ** Definition of internal QPSPrinter class.
  9. ** QPSPrinter implements PostScript (tm) output via QPrinter.
  10. **
  11. ** Created : 940927
  12. **
  13. ** Copyright (C) 1992-1998 Troll Tech AS.  All rights reserved.
  14. **
  15. ** This file is part of Qt Free Edition, version 1.40.
  16. **
  17. ** See the file LICENSE included in the distribution for the usage
  18. ** and distribution terms, or http://www.troll.no/free-license.html.
  19. **
  20. ** IMPORTANT NOTE: You may NOT copy this file or any part of it into
  21. ** your own programs or libraries.
  22. **
  23. ** Please see http://www.troll.no/pricing.html for information about 
  24. ** Qt Professional Edition, which is this same library but with a
  25. ** license which allows creation of commercial/proprietary software.
  26. **
  27. *****************************************************************************/
  28.  
  29. #ifndef QPSPRINTER_H
  30. #define QPSPRINTER_H
  31.  
  32. #ifndef QT_H
  33. #include "qprinter.h"
  34. #include "qtextstream.h"
  35. #endif // QT_H
  36.  
  37.  
  38. struct QPSPrinterPrivate;
  39.  
  40. class QPSPrinter : public QPaintDevice
  41. {
  42. private:
  43.     // QPrinter uses these
  44.     QPSPrinter( QPrinter *, int );
  45.    ~QPSPrinter();
  46.  
  47.     bool cmd ( int, QPainter *, QPDevCmdParam * );
  48.  
  49.     friend class QPrinter;
  50. private:
  51.     // QPrinter does not use these
  52.  
  53.     QPrinter   *printer;
  54.     QPSPrinterPrivate *d;
  55.     QTextStream stream;
  56.     int        pageCount;
  57.     bool    dirtyMatrix;
  58.     bool    dirtyNewPage;
  59.     bool    epsf;
  60.     QString    fontsUsed;
  61.  
  62.     void matrixSetup( QPainter * );
  63.     void clippingSetup( QPainter * );
  64.     void setClippingOff( QPainter * );
  65.     void orientationSetup();
  66.     void newPageSetup( QPainter * );
  67.     void resetDrawingTools( QPainter * );
  68.     void emitHeader();
  69.     void setFont( const QFont & );
  70.     void drawImage( QPainter *, const QPoint &, const QImage & );
  71.  
  72.     // Disabled copy constructor and operator=
  73.     QPSPrinter( const QPSPrinter & );
  74.     QPSPrinter &operator=( const QPSPrinter & );
  75. };
  76.  
  77.  
  78. // Additional commands for QPSPrinter
  79.  
  80. #define PDC_PRT_NEWPAGE 100
  81. #define PDC_PRT_ABORT    101
  82.  
  83.  
  84. #endif // QPSPRINTER_H
  85.